<script type="text/javascript">
	$(function() {
		$.fn.dataGridOptions.formSubFun("#form",'/modules/additional/cashAwardRule/cashAwardRuleEdit.html',"修改成功！","修改失败！");
	});
</script>
<style>
	.hide{display:none;}
	.sForm .ipt{margin-left:155px;}
	.sForm .ipt1{margin-bottom:20px;margin-left:155px;}
	.sForm .lab{width:139px;}
</style>
<div class="popForm sForm">
	<form id="form"  method="post">

		<div class="formitm">
			<label class="lab">现金奖励规则名称：</label>
			<div class="ipt">
				<input type="text" name="name" class="w200 easyui-validatebox" data-options="required: true" maxlength="25"  value="${cashAwardRule.name!}"/>
				<b>*</b>
			</div>
		</div>

		<div class="formitm">
			<label class="lab">是否启用：</label>
			<div class="ipt">
				<input type="radio" id="status" class="xj-hongbao" value="0" name="status"  <#if cashAwardRule.status == 0>checked="checked"</#if>>启用
				<input type="radio" id="status" class="xn-hongbao" value="1" name="status" <#if cashAwardRule.status == 1>checked="checked"</#if>>不启用
			</div>
		</div>

		<div class="formitm">
			<label class="lab">单笔投资金额：</label>
			<div class="ipt"><input type="text" name="investAmount" id="investAmount" value="${cashAwardRule.investAmount}" style="width:60px;" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" class="amount easyui-validatebox int_figure_required" data-options="required: true" maxlength="8">元<b>*</b></div>
		</div>

		<div class="formitm">
			<label class="lab">累计投资金额：</label>
			<div class="ipt"><input type="text" name="cumulativeAmount" id="cumulativeAmount" value="${cashAwardRule.cumulativeAmount}" style="width:60px;" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" class="amount easyui-validatebox int_figure_required" data-options="required: true" maxlength="8">元<b>*</b></div>
		</div>

		<div class="formitm">
			<label class="lab">返现金额：</label>
			<div class="ipt"><input type="text" name="money" id="money" value="${cashAwardRule.money}" style="width:60px;" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" class="amount easyui-validatebox int_figure_required" data-options="required: true" maxlength="8">元<b>*</b></div>
		</div>

		<div class="formitm">
			<label class="lab">返现率：</label>
			<div class="ipt"><input type="text" name="cashBackRate" id="cashBackRate" value="${cashAwardRule.cashBackRate}" class="easyui-validatebox validatebox-text" data-options="required: true,validType:'lotteryRate[0,1]'" maxlength="6" style="width:80px;">&nbsp;介于0～1之间<b>*</b></div>
		</div>

		<div class="formitm">
			<label class="lab">返现方式：</label>
			<div class="ipt">
				<select name="type" id="type">
					<option value="0" <#if cashAwardRule.type == 0>selected="selected"</#if>>固定金额</option>
					<option value="1" <#if cashAwardRule.type == 1>selected="selected"</#if>>比例返现</option>
				</select>
				<b>*</b>
			</div>
		</div>

		<div class="formitm">
			<label class="lab">规则截止时间：</label>
			<div class="ipt">
				<input type="text" name="expiredTime" id="expiredTime" value="${cashAwardRule.expiredTime?string('yyyy-MM-dd HH:mm:ss')}" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',readOnly:true})" class="searchTime"/>
				<b>*</b>
			</div>
		</div>

		<div class="formitm">
			<label class="lab">现金奖励规则描述：</label>
			<div class="ipt">
				<textarea rows="3" cols="50" maxlength="128" name="description">${cashAwardRule.description!}</textarea>
			</div>
		</div>

		<div class="formitm">
			<label class="lab">添加时间：</label>
			<div class="ipt">
				${cashAwardRule.createTime?string('yyyy-MM-dd HH:mm:ss')!}
			</div>
		</div>

		<input type="hidden" name="id" value="${cashAwardRule.id!}">
	</form>
</div>